import api from '@/http/index'

/* 列表 */
export const getTablesList = (data) => {
    return new Promise((resolve, reject) => {
        api.post('/api/Supplier/GetGridJson', data).then((res) => {
            resolve(res);
        }).catch(err => {
            reject(err)
        })
    });
};


/* 新建 */
export const addTablesItem = (data) => {
    return new Promise((resolve, reject) => {
        api.post('/api/Supplier/SubmitForm', data).then((res) => {
            resolve(res);
        }).catch(err => {
            reject(err)
        })
    });
};

/* Id查询 */
export const getItemInfo = (data) => {
    return new Promise((resolve, reject) => {
        api.post('/api/Supplier/GetGridID', data).then((res) => {
            resolve(res);
        }).catch(err => {
            reject(err)
        })
    });
};

/* Id查询 */
export const setDisableEnable = (data) => {
    return new Promise((resolve, reject) => {
        api.post('/api/Supplier/Activite', data).then((res) => {
            resolve(res);
        }).catch(err => {
            reject(err)
        })
    });
};



